package com.jingdianjichi.auth.convert;

import com.jingdianjichi.auth.bo.AuthRoleBO;
import com.jingdianjichi.auth.bo.AuthUserBO;
import com.jingdianjichi.auth.entity.AuthRole;
import com.jingdianjichi.auth.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户bo转换器
 */
@Mapper
public interface AuthRoleBOConverter {
    AuthRoleBOConverter INSTANCE = Mappers.getMapper(AuthRoleBOConverter.class);
    AuthRole convertBOToEntity (AuthRoleBO authRoleBO);
    AuthRoleBO convertEntityToBO (AuthRole authRole);
}
